@import "common";

@basefont: 50px;

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica, STHeiTi, sans-serif;
    background-color: #f2f2f2;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-header {
    display: flex;
    width: 750rem / @basefont;
    height: 100rem / @basefont;
    background-color: #232323;
    align-items: center;
    justify-content: space-between;

    .close {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100rem / @basefont;
        height: 100rem / @basefont;

        img {
            width: 32rem / @basefont;
            height: 32rem / @basefont;
        }
    }

    .md {
        flex: 1;
        display: flex;
        align-items: center;
        text-decoration: none;

        img {
            display: block;
            width: 70rem / @basefont;
            height: 70rem / @basefont;
            margin-right: 16rem / @basefont;
        }

        .op-app {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100rem / @basefont;
            width: 256rem / @basefont;

            p {
                font-size: 24rem / @basefont;
                margin: 0;
                padding: 0;
                color: #fff;
                text-decoration: none;
                list-style: none;

                &.bottom {
                    color: #999;
                }
            }
        }
    }

    .open {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 240rem / @basefont;
        height: 100rem / @basefont;
        color: #fff;
        background-color: #cd2525;
        text-decoration: none;

        p {
            font-size: 30rem / @basefont;
        }
    }
}

.search {
    position: fixed;
    top: 100rem / @basefont;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 750rem / @basefont;
    height: 88rem / @basefont;
    z-index: 10;

    .s-lf {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80rem / @basefont;
        height: 88rem / @basefont;

        img {
            display: block;
            width: 40rem / @basefont;
            height: 36rem / @basefont;
        }
    }

    .s-in {
        flex: 1;
        display: flex;
        align-items: center;
        height: 88rem / @basefont;

        .input {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: space-between;
            height: 60rem / @basefont;
            background-color: #fff;
            border-radius: 44rem / @basefont;

            img {
                display: block;
                width: 40rem / @basefont;
                height: 30rem / @basefont;
                margin: 0 9rem / @basefont 0 15rem / @basefont;

            }

            a {
                flex: 1;
                display: flex;
                align-items: center;
                width: 100%;
                color: #999;
                padding-left: 8rem / @basefont;
                font-size: 24rem / @basefont;
                text-decoration: none;
                border-left: 1rem / @basefont solid #999;

                i {
                    width: 36rem / @basefont;
                    height: 30rem / @basefont;
                    background: url(../images/jd-sprites.png) no-repeat -160rem / @basefont 0;
                    background-size: 400rem / @basefont auto;
                    margin-right: 5rem / @basefont;
                }
            }
        }
    }

    .s-rg {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80rem / @basefont;
        height: 88rem / @basefont;
        font-size: 24rem / @basefont;
        color: #fff;
    }
}

main {
    width: 750rem / @basefont;
    margin: 0 auto;
    background: url(../images/bgc.jpg) 10rem / @basefont -225rem / @basefont;
    background-size: 750rem / @basefont auto;
    overflow: hidden;

    .nav-banner {
        position: relative;
        margin: 0 25rem / @basefont;
        overflow: hidden;

        ul {
            position: relative;
            width: 700rem / @basefont;
            height: 269rem / @basefont;
            padding: 88rem / @basefont 0 25rem / @basefont;
            border-radius: 10rem / @basefont;

            li {
                position: absolute;
                left: 700rem / @basefont;
                display: flex;
                width: 700rem / @basefont;
                height: 280rem / @basefont;
                justify-content: center;

                &:nth-child(1) {
                    left: 0;
                }

                a {
                    display: flex;
                    width: 100%;
                    height: 100%;
                    margin: 0 auto;
                    justify-content: center;

                    img {
                        display: block;
                        width: 100%;
                        height: 100%;
                        border-radius: 10rem / @basefont;
                    }
                }
            }
        }

        .dotted {
            position: absolute;
            margin: 0;
            padding: 0;
            left: 50%;
            transform: translateX(-50%);
            bottom: 20rem / @basefont;
            height: 5rem / @basefont;

            li {
                float: left;
                width: 5rem / @basefont;
                height: 5rem / @basefont;
                margin-right: 5rem / @basefont;
                border-radius: 50%;
                background-color: rgba(0, 0, 0, 0.5);

                &.current {
                    background-color: #fff;
                }
            }
        }
    }

    .tuijian {
        width: 750rem / @basefont;
        height: 200rem / @basefont;
        margin: 0 auto;
        background-color: #fff;

        a {
            float: left;
            width: 33.333%;

            img {
                width: 100%;
            }
        }
    }

    .nav {
        width: 750rem / @basefont;
        height: 324rem / @basefont;
        margin: 0;
        padding: 0;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 1rem, #f2f2f2 3rem);


        ul {
            width: 700rem / @basefont;
            margin: 0 auto;
            background-color: #fff;
            overflow: hidden;
            border-radius: 8rem / @basefont;
            padding-bottom: 20rem / @basefont;

            li {
                float: left;
                width: 20%;
                height: 50%;

                a {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                    text-decoration: none;

                    img {
                        display: block;
                        width: 80rem / @basefont;
                        height: 80rem / @basefont;
                        margin-top: 15rem / @basefont;
                    }

                    span {
                        font-size: 24rem / @basefont;
                        color: #666;
                    }
                }
            }
        }
    }

    .laidian {
        justify-content: center;
        background-color: #f2f2f2;
        padding-bottom: 2rem / @basefont;

        .ld-c {
            display: flex;
            justify-content: center;
            margin: 0 auto;
            margin: 0 auto;
            width: 700rem / @basefont;
            background-color: #fff;
            box-sizing: border-box;

            .ld-lf {
                flex: 1;

                h2 {
                    margin: 0;
                    margin-top: 12rem / @basefont;
                    text-align: right;
                    margin-right: 20rem / @basefont;
                    font-size: 32rem / @basefont;
                }

                ul {
                    display: flex;
                    justify-content: space-around;

                    li {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;

                        span {
                            font-size: 24rem / @basefont;
                            color: #222;
                        }

                        img {
                            width: 120rem / @basefont;
                            height: 120rem / @basefont;
                        }
                    }
                }
            }

            .ld-rg {
                flex: 1;

                h2 {
                    margin: 0;
                    margin-top: 12rem / @basefont;
                    margin-left: 22rem / @basefont;
                    margin-right: 20rem / @basefont;
                    font-size: 32rem / @basefont;
                }

                ul {
                    display: flex;
                    justify-content: space-around;

                    li {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;

                        span {
                            font-size: 24rem / @basefont;
                            color: #222;
                        }

                        img {
                            width: 120rem / @basefont;
                            height: 120rem / @basefont;
                        }
                    }
                }
            }
        }
    }

    .jdms {
        width: 750rem / @basefont;
        height: 412rem / @basefont;
        background-color: #f2f2f2;

        ul {
            width: 700rem / @basefont;
            margin: 0 auto;
            background-color: #fff;
            overflow: hidden;
            padding: 0 2rem / @basefont 5rem / @basefont;
            box-sizing: border-box;
            border-radius: 8rem / @basefont;

            li {
                display: flex;
                flex-direction: column;
                align-items: center;
                float: left;
                width: 50%;

                img {
                    width: 340rem / @basefont;
                }

                .now {
                    color: #f2270c;
                    font-size: 26rem / @basefont;
                }

                .del {
                    color: #999;
                    font-size: 24rem / @basefont;
                    text-decoration: line-through;
                }
            }
        }
    }
    
}
.tuijian-content {
    width: 750rem / @basefont;
    background-color: #f2f2f2;
}
.tuijian-content .tc-lf {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    padding: 1%;
    padding-left: 47rem / @basefont;
    margin: 0 auto;
    box-sizing: border-box;
    width: 700rem / @basefont;
}
.tuijian-content .tc-lf li {
    float: left;
    width: 25%;
    text-align: left;
}
.tuijian-content .tc-lf li.current {
    width: 50%;
}
.tuijian-content .tc-lf li.current img {
    
    width: 120rem / @basefont;
    height: 120rem / @basefont;
    margin-right: 1%;
}
.tuijian-content .tc-lf li.current img:nth-of-type(2) {
    margin-left: 14%;
}
.tuijian-content .tc-lf li img {
    display: inline-block;
    width: 120rem / @basefont;
    height: 120rem / @basefont;
    box-sizing: border-box;
}
.tuijian-content .tc-lf li h3 {
    font-size: 32rem / @basefont;
    font-weight: 700;
    padding: 1% 0 1% 2%;
    margin: 0;
    padding: 0;
    margin-bottom: 1%;
}
.tuijian-content .tc-lf li p {
    margin: 0;
    color: #666;
    font-size: 24rem / @basefont;
}

.daohang {
    width: 100%;
    height: 110rem / @basefont;
    overflow: hidden;
    background-color: #f2f2f2;

    ul {

        position: fixed;
        bottom: 0;
        width: 750rem / @basefont;
        background-color: #fff;
        overflow: hidden;
        margin: 0 auto;

        li {
            float: left;
            width: 20%;
            text-align: center;
            vertical-align: middle;
            img {
                display: block;
                width: 120rem / @basefont;
                height: 92rem / @basefont;
            }
        }
    }
}
